@extends('backend.layouts.default')

@section('content')
  <div class="box box-primary">
    <div class="box-header with-border">
      <h3 class="box-title">标签添加</h3>
    </div>
    <form role="form" action="{{ route('tags.store') }}" method="post">
      <div class="box-body">
        <div class="form-group">
          <label for="name">名称</label>
          <input type="text" class="form-control" id="name" name="name" placeholder="" value="{{ old('name') }}">
        </div>
        <div class="form-group">
          <label for="is_display">是否在前端显示</label>
          <switch-button name="is_display" value="{{ old('is_display', 1) }}"></switch-button>
        </div>
        @include('backend.layouts.errors')
      </div>
      <div class="box-footer text-right">
        {{ csrf_field() }}
        <button type="submit" class="btn btn-primary">确认</button>
      </div>
    </form>
  </div>
@endsection
